package com.xsomnus.java_basic.proxy.test;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.concurrent.ThreadLocalRandom;

/**
 * @author @xsomnus666_xiawenye★
 * @since 2019/7/19 0019 11:49
 * - 才需学也,学需静也/非淡泊无以明志，非宁静无以致远
 */
@Data
@Accessors(chain = true)
public class User {

    private String userId;
    private String username;

    public static User giveOne() {
        return new User().setUserId("u" + ThreadLocalRandom.current().nextInt()).setUsername("un" + ThreadLocalRandom.current().nextInt());
    }
}
